home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / pgp20src.zip / USUALS.H < prev    next >
C/C++ Source or Header  |  1992-02-22  |  799b  |  25 lines

  1. /* usuals.h - The usual typedefs, etc.
  2. */
  3. #ifndef USUALS /* Assures no redefinitions of usual types...*/
  4. #define USUALS
  5.  
  6. typedef unsigned char boolean;    /* values are TRUE or FALSE */
  7. typedef unsigned char byte;    /* values are 0-255 */
  8. typedef byte *byteptr;    /* pointer to byte */
  9. typedef char *string;    /* pointer to ASCII character string */
  10. typedef unsigned short word16;    /* values are 0-65535 */
  11. typedef unsigned long word32;    /* values are 0-4294967295 */
  12.  
  13. #ifndef TRUE
  14. #define FALSE 0
  15. #define TRUE (!FALSE)
  16. #endif    /* if TRUE not already defined */
  17.  
  18. #ifndef min    /* if min macro not already defined */
  19. #define min(a,b) ( (a)<(b) ? (a) : (b) )
  20. #define max(a,b) ( (a)>(b) ? (a) : (b) )
  21. #endif    /* if min macro not already defined */
  22.  
  23. #endif    /* if USUALS not already defined */
  24.  
  25.